home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / amaz.xml < prev    next >
Text File  |  2002-08-30  |  6KB  |  128 lines

  1. <search function="amaz">
  2.   <name>Amazon.com</name>
  3.   <description>
  4.     Search specific stores on Amazon.com. Searches all stores by default.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.       <table class="helpboxDescTable">
  7.           <tr><td>/books</td><td> - </td><td>Books</td></tr>
  8.           <tr><td>/music</td><td> - </td><td>Popular Music</td></tr>
  9.           <tr><td>/mp3</td><td> - </td><td>Music Downloads</td></tr>
  10.           <tr><td>/classical</td><td> - </td><td>Classical Music</td></tr>
  11.           <tr><td>/dvd</td><td> - </td><td>DVDs</td></tr>
  12.           <tr><td>/vhs</td><td> - </td><td>VHS Tapes</td></tr>
  13.           <tr><td>/movies</td><td> - </td><td>Local Movie Showtimes</td></tr>
  14.           <tr><td>/restaurants</td><td> - </td><td>Restaurants</td></tr>
  15.           <tr><td>/toys</td><td> - </td><td>Toys</td></tr>
  16.           <tr><td>/baby</td><td> - </td><td>Baby Products</td></tr>
  17.           <tr><td>/computers</td><td> - </td><td>PC Hardware</td></tr>
  18.           <tr><td>/software</td><td> - </td><td>PC Software</td></tr>
  19.           <tr><td>/games</td><td> - </td><td>Video Games</td></tr>
  20.           <tr><td>/electronics</td><td> - </td><td>Electronics</td></tr>
  21.           <tr><td>/cellular</td><td> - </td><td>Cellular Phones</td></tr>
  22.           <tr><td>/photography</td><td> - </td><td>Camera & Photography</td></tr>
  23.           <tr><td>/tools</td><td> - </td><td>Tools & Hardware</td></tr>
  24.           <tr><td>/magazines</td><td> - </td><td>Magazines</td></tr>
  25.           <tr><td>/garden</td><td> - </td><td>Outdoor Living</td></tr>
  26.           <tr><td>/kitchen</td><td> - </td><td>Kitchen</td></tr>
  27.           <tr><td>/travel</td><td> - </td><td>Travel</td></tr>
  28.           <tr><td>/outlet</td><td> - </td><td>Outlet</td></tr>
  29.           <tr><td>/auctions</td><td> - </td><td>Auctions</td></tr>
  30.           <tr><td>/zshops</td><td> - </td><td>zShops</td></tr>
  31.           <tr><td>/scientific</td><td> - </td><td>Sci. Supplies</td></tr>
  32.           <tr><td>/medical</td><td> - </td><td>Med. Supplies</td></tr>
  33.           <tr><td>/industrial</td><td> - </td><td>Indust. Supplies</td></tr>
  34.           <tr><td>/cars</td><td> - </td><td>Car Parts</td></tr>
  35.           <tr><td>/home</td><td> - </td><td>Home Furnishings</td></tr>
  36.           <tr><td>/lifestyle</td><td> - </td><td>Lifestyle</td></tr>
  37.           <tr><td>/pets</td><td> - </td><td>Pet Toys</td></tr>
  38.           <tr><td>/arts</td><td> - </td><td>Arts and Hobbies</td></tr>
  39.       </table>
  40.     <div class="helpboxDescLabels">Examples:</div>
  41.     <table class="helpboxDescTable">
  42.           <tr><td>amaz moxy fruvous /music</td></tr>
  43.           <tr><td>amaz harry potter /books</td></tr>
  44.       </table>
  45.   </description>
  46.   <category>Shopping</category>
  47.   <link>http://www.amazon.com/</link>
  48.   <contributor>Dan Sanderson, Ryan Edwards</contributor>
  49.   
  50.   <form name="amazf"
  51.         action="http://www.amazon.com/exec/obidos/external-search"
  52.         method="get">
  53.     <input type="hidden" name="mode"/>
  54.     <input type="hidden" name="keyword"/>
  55.     <input type="hidden" name="tag" value="dqsd-20"/>
  56.   </form>
  57.   
  58.   <script><![CDATA[
  59.     function amaz(q)
  60.     {
  61.       if( nullArgs("amaz", q) )
  62.         return false;
  63.  
  64.       var args = parseArgs(q, "books, music, classical-music, music-dd, mp3, dvd, video, vhs, movies, theatrical, restaurants, toys, baby, computers, pc-hardware, software, games, electronics, photography, tools, magazines, garden, kitchen, travel, cellular, wireless-phones, outlet, auctions, zshops, scientific, medical, industrial, cars, home, lifestyle, pets, arts");
  65.       if( q == "" )
  66.         openSearchWindow("http://www.amazon.com/");
  67.       else if( args.switches.length == 1 )
  68.       {
  69.         switch( args.switches[0].name )
  70.         {
  71.           case "movies":
  72.             document.amazf.mode.value = "theatrical"; break;
  73.           case "video":
  74.             document.amazf.mode.value = "vhs"; break;
  75.           case "mp3":
  76.             document.amazf.mode.value = "music-dd"; break;
  77.           case "computers":
  78.             document.amazf.mode.value = "pc-hardware"; break;
  79.           case "games":
  80.             document.amazf.mode.value = "videogames"; break;
  81.           case "photography":
  82.             document.amazf.mode.value = "photo"; break;
  83.           case "cellular":
  84.             document.amazf.mode.value = "wireless-phones"; break;
  85.           case "auctions":
  86.             document.amazf.mode.value = "auction-redirect"; break;
  87.           case "zshops":
  88.             document.amazf.mode.value = "fixed-price-redirect"; break;
  89.           case "scientific":
  90.             document.amazf.mode.value = "moc-scientific-supplies"; break;
  91.           case "medical":
  92.             document.amazf.mode.value = "moc-medical-supplies"; break;
  93.           case "industrial":
  94.             document.amazf.mode.value = "moc-industrial-supplies"; break;
  95.           case "cars":
  96.             document.amazf.mode.value = "moc-cars"; break;
  97.           case "home":
  98.             document.amazf.mode.value = "moc-home-furnishings"; break;
  99.           case "lifestyle":
  100.             document.amazf.mode.value = "moc-lifestyle"; break;
  101.           case "pets":
  102.             document.amazf.mode.value = "moc-pet-toys"; break;
  103.           case "arts":
  104.             document.amazf.mode.value = "moc-arts-hobby"; break;
  105.           default:
  106.             document.amazf.mode.value = args.switches[0].name;
  107.         }
  108.         document.amazf.keyword.value = args.q;
  109.         submitForm(amazf);
  110.       }
  111.       else if( args.switches.length > 1 )
  112.         nullArgs("amaz","?");
  113.       else
  114.       {
  115.         document.amazf.mode.value = "blended";
  116.         document.amazf.keyword.value = args.q;
  117.         submitForm(amazf);
  118.       }
  119.     }
  120.   ]]></script>
  121.  
  122.   <copyright>
  123.     Copyright (c) 2002 David Bau
  124.     Distributed under the terms of the
  125.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  126.   </copyright>
  127. </search>
  128.